﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace Cephei.Core
{
    // Happens when a cell change is triggered by itself 
    public class CircularReferenceException : System.Exception { };
    // Not implemented exceptions
    public class NotImplementedException : System.Exception { };

    // can not change the type of a cell
    public class TypeChangeException : System.Exception { };

    // cells need to be attached to a session before they changed
    public class InvalidSessionException : System.Exception { };

    /// <summary>
    /// Wrapper class arround native Exceptions thrown in native C++
    /// </summary>
    public class NativeExcpetion : System.Exception
    {
        public NativeExcpetion (string msg) : base (msg) { }
    }
    /// <summary>
    /// Some IList<> methods (such as IndexOf()) are meaningless for matricies
    /// </summary>
    public class ListMethodNotImplementedException : Exception { public ListMethodNotImplementedException () : base () { } }

    public class LockStarvationException : Exception { public LockStarvationException () : base () { } }
}
